//
//  NSString+CHChatView.m
//  ChildHoodStemp
//
//  Created by 日东 罗 on 13-10-7.
//
//

#import "NSString+CHChatView.h"

@implementation NSString (CHChatView)
- (NSString *)trimWhitespace
{
    return [self stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
}

- (NSUInteger)numberOfLines
{
    return [self componentsSeparatedByString:@"\n"].count + 1;
}
@end
